<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>行政人事</title>
<link rel="stylesheet" href="/Sunlike/extjs/resources/css/ext-all.css" type="text/css"></link>
<link rel="stylesheet" href="/Sunlike/css/toolbar.css" type="text/css"></link>
<script type="text/javascript" src="/Sunlike/extjs/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="/Sunlike/extjs/ext-all-debug.js"></script>
<script type="text/javascript">
function menu()
{
	var jobMenus1 = [ 
        {text:'函(GTC)',iconCls:'menu-item'},
 	    {text:'工作回報(GTC)',iconCls:'menu-item'},
 		{text:'工作指令單（GTC）',iconCls:'menu-item'},
 		{text:'工作指令回報（GTC）',iconCls:'menu-item'},
 		{text:'公告單(GTC)',iconCls:'menu-item'}
 	];
	var jobMenus2 = [
	    {text:'會議通知單（GTC）',iconCls:'menu-item'},
	    {text:'會議記錄單（GTC）',iconCls:'menu-item'},
		{text:'會議交辦回報單(GTC)',iconCls:'menu-item'},
		{text:'業務拜訪會議記錄單（GTC）',iconCls:'menu-item'},
		{text:'業務拜訪會議交辦回報單(GTC)',iconCls:'menu-item'}
	];
	var jobMenus3 = [
   	    {text:'工作日誌回報單(GTC)',iconCls:'menu-item'},
   	    {text:'工作日誌稽核單(GTC)',iconCls:'menu-item'}
	];
	var jobMenus4 = [
   	    {text:'員工基本資料登錄單（GTC）',iconCls:'menu-item'},
   	    {text:'有帳號員工請假單（GTC）',iconCls:'menu-item'},
   		{text:'系統帳號建立單（GTC）',iconCls:'menu-item'},
   		{text:'出差申請單(GTC)',iconCls:'menu-item'},
   		{text:'出差回廠單(GTC)',iconCls:'menu-item'},
   		{text:'預支單(GTC)',iconCls:'menu-item'},
   		{text:'匯率錄入單(GTC)',iconCls:'menu-item'},
   		{text:'人事異動申請單（GTC）',iconCls:'menu-item'},
   		{text:'每月考勤記錄核查單(GTC)',iconCls:'menu-item'},
   		{text:'薪資計算核查單(GTC)',iconCls:'menu-item'},
   		{text:'薪資計算核查單(離職)',iconCls:'menu-item'}
	];
	new Ext.Panel({
		renderTo:'toolbarspan',
		id:'MENUMyJob',
	    tbar:[{
	    	id:'JOB-MENU-1',
	    	text:'行政管理',
	    	menu:jobMenus1,
	    	iconCls:'menu'
	    },'-',{
	    	id:'JOB-MENU-2',
	    	text:'會議管理',
	    	menu:jobMenus2,
	    	iconCls:'menu'
	    },'-',{
	    	id:'JOB-MENU-3',
	    	text:'日誌管理',
	    	menu:jobMenus3,
	    	iconCls:'menu'
	    },'-',{
	    	id:'JOB-MENU-4',
	    	text:'人事管理',
	    	menu:jobMenus4,
	    	iconCls:'menu'
	    }]
	});
	
	new Ext.Viewport({
		layout: 'border',
		items: [{
	        region: 'north',
	        html: '<h1 class="x-panel-header">Page Title</h1>',
	        autoHeight: true,
	        border: false,
	        margins: '0 0 5 0'
	    }, {
	        region: 'center',
	        xtype: 'panel',
	        renderTo:'center'
	    }, {
	        region: 'south',
	        title: '系統提醒',
	        collapsible: true,
	        html: '系統提醒區域2',
	        split: true,
	        height: 100,
	        minHeight: 100
	    }]
	});
	
}
Ext.onReady(menu);
</script>
</head>
<body>
<div id='toolbarspan'></div>
</body>
</html>